package com.life.muyu.exception;

public enum CustomizeErrorCode  implements ICustomizeErrorCode{
    SUCCESS( 200,"请求成功"),
    NOT_LOGIN( 2001,"没有登陆，请登陆"),
    SYSTEM_ERROR( 50000,"系统错误,请稍后再试"),
    UP_LOAD_FILE_NOT_IMG(50001,"上传的文件不是图片"),
    ACCESS_ERROR(1234,"拉去授权失败"),
    ACCESS_ADMIN_ERROR(4321,"非管理员账号");
    CustomizeErrorCode(Integer code ,String message) {
            this.code=code;
            this.message=message;
    }

    private  Integer code;
    private  String message;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
